/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.zcm.modules.bzy.entity;

import org.hibernate.validator.constraints.Length;

import com.zcm.common.persistence.DataEntity;

/**
 * qjwEntity
 * @author www
 * @version 2018-11-20
 */
public class BzyQjw extends DataEntity<BzyQjw> {
	
	private static final long serialVersionUID = 1L;
	private String companycode;		// 代码
	private String companytype;		// 类型
	private String pid;		// pid
	private String companyshortname;		// 名称
	
	public BzyQjw() {
		super();
	}

	public BzyQjw(String id){
		super(id);
	}

	@Length(min=0, max=20, message="代码长度必须介于 0 和 20 之间")
	public String getCompanycode() {
		return companycode;
	}

	public void setCompanycode(String companycode) {
		this.companycode = companycode;
	}
	
	@Length(min=0, max=6, message="类型长度必须介于 0 和 6 之间")
	public String getCompanytype() {
		return companytype;
	}

	public void setCompanytype(String companytype) {
		this.companytype = companytype;
	}
	
	@Length(min=0, max=64, message="pid长度必须介于 0 和 64 之间")
	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}
	
	@Length(min=0, max=255, message="名称长度必须介于 0 和 255 之间")
	public String getCompanyshortname() {
		return companyshortname;
	}

	public void setCompanyshortname(String companyshortname) {
		this.companyshortname = companyshortname;
	}
	
}